package com.elangzhi.ssm.model;

import com.elangzhi.ssm.model.base.BaseModel;
import java.util.Date;
import java.util.List;

/**
 * 说说评论
 */
public class Record extends BaseModel{
    private Long id;

    private Date setTime;

    /**
     * 操作人
     */
    private Long userId;

    /**
     * 接收人
     */
    private Long receiveId;

    /**
     * 内容
     */
    private String content;

    /**
     * 0,点赞
     * 1,说说评论
     * 2，评论的评论
     */
    private Integer type;
    /**
     * 0 说说id
     * type =1 说说id
     * type =2 评论id
     */
    private Long infoId;

    private List<Record> child;
    private User user;
    private User receiveUser;

    public Record(Long id, Date setTime, Long userId, String content, Integer type, Long infoId) {
        this.id = id;
        this.setTime = setTime;
        this.userId = userId;
        this.content = content;
        this.type = type;
        this.infoId = infoId;
    }

    public Record() {
        super();
    }

    public User getReceiveUser() {
        return receiveUser;
    }

    public void setReceiveUser(User receiveUser) {
        this.receiveUser = receiveUser;
    }

    public Long getReceiveId() {
        return receiveId;
    }

    public void setReceiveId(Long receiveId) {
        this.receiveId = receiveId;
    }

    public List<Record> getChild() {
        return child;
    }

    public void setChild(List<Record> child) {
        this.child = child;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getSetTime() {
        return setTime;
    }

    public void setSetTime(Date setTime) {
        this.setTime = setTime;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getInfoId() {
        return infoId;
    }

    public void setInfoId(Long infoId) {
        this.infoId = infoId;
    }
}